import Vue from "vue";
import VueRouter from "vue-router";
import Ul_Router from "@/views/Ul_Router.vue";
import MyAlice from "@/views/MyAlice.vue";
import MyContacts from "@/views/MyContacts.vue";
import All_contacts from "@/views/All_contacts.vue";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    { path: "/ulrouter", component: Ul_Router },

    {
      path: "/contacts",
      component: MyContacts,
      children: [
        { path: "alice", component: MyAlice },
        { path: "allcontacts", component: All_contacts },
      ],
    },
  ],
});

export default router;
